#include<cstdio>
#include<cstring>
char s[1005];
int main(void)
{
	while(scanf("%s", s) != EOF);
	printf("%d\n", strlen(s));
	return 0;
}
